#include<stdio.h>
#include<math.h>
int main()
{
	int i = 1,m;
	double s = 0;
	scanf("%d", &m);
	for ( i = 1; i <= m; i++)
	{
		s += log(i);
	}
	printf("s=%lf", sqrt (s));
}
